json.array!(@invoices) do |invoice|
  json.extract! invoice, :id, :code, :date, :total_fee, :total_discount, :created_at, :updated_at, :created_by, :updated_by
  json.url invoice_url(invoice, format: :json)
end
